﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCP.Master" AutoEventWireup="true" CodeBehind="ViewOffers.aspx.cs" Inherits="University.Workshop.WebApp.ViewOffers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style10
        {
            width: 33px;
        }
        .style15
        {
            width: 49px;
        }
        .style16
        {
            width: 94px;
        }
        .style17
        {
            width: 101px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:Label ID="Label2" runat="server" Text="Offers I Made" ForeColor="Green" Font-Size="Large"></asp:Label>
    <br />
    <asp:Label ID="Label3" runat="server" Text="You haven't make any offers" Visible="false" ></asp:Label>
    <br />
                <asp:DataList ID="dlWatchList" runat="server" BackColor="White" CellPadding="2" 
                    CellSpacing="2" ForeColor="Black" >
                    <HeaderStyle BorderStyle="Inset" />

            <FooterTemplate>
            </FooterTemplate>
                    <ItemTemplate>
                        <table style="width:166%; height: 54px;">
                            <tr>
                                <td class="style15">
                                    <asp:Label ID="Name" runat="server" Text='<%# Eval("RelatedProduct.Name") %>'></asp:Label>
                                </td>
                                <td class="style17">
                                    Buy It Now Price:<asp:Label ID="Price" runat="server" 
                                        Text='<%# Eval("RelatedProduct.Price") %>'></asp:Label>
                                    
                                    <asp:Label ID="Currency0" runat="server" 
                                        Text='<%# Eval("RelatedProduct.Currency") %>'></asp:Label>
                                    
                                </td>
                                <td class="style16">Offer Price:<asp:Label ID="OfferPrice" runat="server" 
                                        Text='<%# Eval("OfferPrice") %>'></asp:Label>
                                    <asp:Label ID="Currency1" runat="server" 
                                        Text='<%# Eval("RelatedProduct.Currency") %>'></asp:Label>
                                </td>
                                  <td class="style10">  
                                      <asp:Label ID="Status" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                                </td>
                                </td>

                                
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
    <br />
    <asp:Label ID="Label4" runat="server" Text="Bids I Made" ForeColor="Green" 
        Font-Size="Large"></asp:Label>
    <br />
    <asp:Label ID="Label5" runat="server" Text="You haven't make any bids" 
        Visible="false" ></asp:Label>
    <br />
                <asp:DataList ID="dlWatchList0" runat="server" BackColor="White" CellPadding="2" 
                    CellSpacing="2" ForeColor="Black" >
                    <HeaderStyle BorderStyle="Inset" />

            <FooterTemplate>
            </FooterTemplate>
                    <ItemTemplate>
                        <table style="width:166%; height: 54px;">
                            <tr>
                                <td class="style15">
                                    <asp:Label ID="Name" runat="server" Text='<%# Eval("Product.Name") %>'></asp:Label>
                                </td>
                                <td class="style17">
                                    Final Price:<asp:Label ID="Price" runat="server" 
                                        Text='<%# Eval("Auction.LastBidPrice") %>'></asp:Label>
                                    
                                    <asp:Label ID="Currency0" runat="server" 
                                        Text='<%# Eval("Auction.Currency") %>'></asp:Label>
                                    
                                </td>
                                  <td class="style10">  
                                      <asp:Label ID="Status" runat="server" Text="You Win!!"></asp:Label>
                                </td>
                                </td>

                                
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
    </asp:Content>
